package day01.arrayutil;

import java.util.Scanner;

public class People {
   private int age;
   private int price;
   private boolean sex;


    public People() {
    }

    public People(int age, int price, boolean sex) {
        this.age = age;
        this.price = price;
        this.sex = sex;
    }

    /**
     * 获取
     * @return age
     */
    public int getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(int age) {
        this.age = age;
    }

    /**
     * 获取
     * @return price
     */
    public int getPrice() {
        return price;
    }

    /**
     * 设置
     * @param price
     */
    public void setPrice(int price) {
        this.price = price;
    }

    /**
     * 获取
     * @return sex
     */
    public boolean isSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public String toString() {
        return "People{age = " + age + ", price = " + price + ", sex = " + sex + "}";
    }
    public void getBean(People pe){
        if(pe.sex==/*this*/sex);{
            System.out.println("不是同性恋");
        }
        if(pe.sex){
            if(pe.age<28){
                if(pe.price>8000){
                    System.out.println("我们结婚吧");
                }else{
                    System.out.println("矮矬穷");
                }
            }else{
                System.out.println("太老了");
            }
        }else{
            if(pe.age</*this.*/age){
                if(pe.price>2000){
                    System.out.println("结婚吧");
                }
            }else{
                System.out.println("不当小白脸");
            }
        }
    }
}
